package com.situ.science.service.impl;

import com.situ.science.mapper.ResearchersMapper;
import com.situ.science.pojo.Admin;
import com.situ.science.pojo.Researchers;
import com.situ.science.pojo.vo.ResearchersVo;
import com.situ.science.service.IAdminService;
import com.situ.science.service.IResearchersService;
import com.situ.science.utils.PageRusults;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResearchersServiceImpl implements IResearchersService {
    @Autowired
    private ResearchersMapper researchersMapper;
    @Override
    public List<Researchers> list() {
        return researchersMapper.list();
    }

    @Override
    public List<ResearchersVo> selectById(int id) {
        return researchersMapper.selectById(id);
    }

    @Override
    public Researchers login(Researchers researchers) {
        return researchersMapper.login(researchers);
    }

    @Override
    public Researchers info(Integer id) {
        return researchersMapper.info(id);
    }

    @Override
    public void update(Researchers researchers) {
        researchersMapper.update(researchers);
    }
}
